<?php

/**
 * post form base class.
 *
 * @method post getObject() Returns the current form's model object
 *
 * @package    jobbit
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BasestatForm extends BaseFormDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'users'        				=> new sfWidgetFormInputText(),
      'comments'    				=> new sfWidgetFormInputText(),
      'comments_yesterday' 	=> new sfWidgetFormInputText(),
      'created_at'      		=> new sfWidgetFormDateTime(),
      'updated_at'      		=> new sfWidgetFormDateTime(),
    ));

    $this->setValidators(array(
      'users'        				=> new sfValidatorInteger(),
      'comments'        		=> new sfValidatorInteger(),
      'comments_yesterday'  => new sfValidatorInteger(),
      'created_at'      		=> new sfValidatorDateTime(),
      'updated_at'      		=> new sfValidatorDateTime(),
    ));

    $this->widgetSchema->setNameFormat('stat[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'stat';
  }

}
